//
//  AppDelegate.swift
//  test
//
//  Created by BlueDancer on 2019/8/15.
//  Copyright © 2019 SanJiang. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
        return .all
    }
}

class ViewController: UIViewController {
    override var shouldAutorotate: Bool {
        print("\(#function) - \(#line) - \(NSStringFromClass(self.classForCoder))")
        return super.shouldAutorotate
    }
}

class TabBarController: UITabBarController {
    override var shouldAutorotate: Bool {
        print("\(#function) - \(#line) - \(NSStringFromClass(self.classForCoder))")
        return super.shouldAutorotate
    }
}

class NavigationController: UINavigationController {
    override var shouldAutorotate: Bool {
        print("\(#function) - \(#line) - \(NSStringFromClass(self.classForCoder))")
        return super.shouldAutorotate
    }
}
